package cn.fsd.service.impl;

import cn.fsd.domain.Station;
import cn.fsd.mapper.StationMapper;
import cn.fsd.service.StationService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StationServiceImpl implements StationService {

  @Autowired
  StationMapper stationMapper;

//  @Override
  public List<Station> getAllStationNames() {
    return stationMapper.selectAll();
  }

  @Override
  public Station getStationById(String stationId) {
    return stationMapper.selectByPrimaryKey(stationId);
  }
}
